package com.ogawa.base.bean;

import java.util.Objects;

public class MqttAccountBean {
    private String sn;
    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MqttAccountBean)) return false;
        MqttAccountBean that = (MqttAccountBean) o;
        return getSn().equals(that.getSn());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getSn());
    }
}
